package com.example.order.exception;

import com.example.order.constant.ShopCode;
import lombok.extern.slf4j.Slf4j;

/**
 * @Author: songyahui
 * @Date: 2020/11/6 19:31
 * @Version 1.0
 */
@Slf4j
public class CastException {
    public static void cast(ShopCode shopCode) {
        log.error(shopCode.toString());
        throw new CustomerException(shopCode);
    }
}
